package com.csi.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Date;

/**
 * 用户表
 */
@Schema(description = "用户信息")
@Data
public class User {
    @Schema(description = "用户ID", required = true)
    private long id; //用户id

    @Schema(description = "用户头像")
    private String userHead; //用户头像

    @Schema(description = "用户昵称")
    private String userNickname; //用户昵称

    @Schema(description = "用户姓名")
    private String username; //用户姓名

    @Schema(description = "用户密码", required = true)
    private String password; //用户密码

    @Schema(description = "用户性别(0女1男)", allowableValues = "0, 1")
    private int userSex; //用户性别(0女1男)

    @Schema(description = "出生日期")
    private Date userBirth; //出生日期

    @Schema(description = "手机号")
    private String phone; //手机号

    @Schema(description = "用户自我介绍")
    private String userSelf; //用户自我介绍
}
